package com.fruit.web.action.util;

/**
 * @author fisher
 * @description Ajax消息对象
 * @date 2011-8-30
 */
public class AjaxMsg {
	private Object data;
	private boolean success = true;
	private int echo = 200;
	private String msg;
	private int status;
	
	public AjaxMsg() {
	
	}
	public AjaxMsg(Object data, boolean success, int echo, String msg) {

		this.data = data;
		this.success = success;
		this.echo = echo;
		this.msg = msg;
	}
	
	public AjaxMsg(Object data, String msg, int status, int echo)
	{
		super();
		this.data = data;
		this.msg = msg;
		this.status = status;
		this.echo = echo;
	}
	public Object getData() {
		return data;
	}
	public void setData(Object data) {
		this.data = data;
	}
	public boolean isSuccess() {
		return success;
	}
	public void setSuccess(boolean success) {
		this.success = success;
	}
	public int getEcho() {
		return echo;
	}
	public void setEcho(int echo) {
		this.echo = echo;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	public int getStatus()
	{
		return status;
	}
	public void setStatus(int status)
	{
		this.status = status;
	}
	@Override
	public String toString()
	{
		return "AjaxMsg [data=" + data + ", success=" + success + ", echo="
				+ echo + ", msg=" + msg + ", status=" + status + "]";
	}
	
	
}
